/**
 * @author zhoujunjie
 * @desc TODO
 * @date 2025/4/11
 */
public class Test13 {
    public static void main(String[] args) {
        for (int i = 20; i > 0; i--) {
            for (int j = 33; j > 0; j--) {
                int x = 100 - i - j;
                if( x % 3 == 0 && i * 5 + j * 3 + x / 3 ==100 ){
                    System.out.println("公鸡" + i +"只，母鸡"+ j +"只，小鸡" + x + "只");
                }
            }
        }
    }
}

